quadratic equation in one shot